home *** CD-ROM | disk | FTP | other *** search
/ PowerQuest 2002 / PowerQuest 2002.iso / POWERQUEST / PQ ServerMagic 4.0 / DOCS / SCRIPTS / If-Then.pqs < prev    next >
Encoding:
Text File  |  2000-10-25  |  705 b   |  21 lines

  1. // PartitionMagic Script File
  2.  
  3. // This script file is an example of the If-Then script statement.
  4.  
  5. // Scenario:
  6. // Disk 1 contains an unknown amount of unallocated space at the end of the 
  7. // disk.
  8. //
  9. // If more than 300 MB of unallocated space is available, the user would like 
  10. // to create a Linux Ext2 partition and a Linux Swap partition on the disk.
  11.  
  12. // Select the last unallocated space and check for at least 300 MB available
  13. Select Disk 1
  14. Select Unallocated Last
  15. If GetSelectedUnallocatedSize > 300 Then
  16.      // Space is large enough, so create the new partitions
  17.      Create /FS=LinuxSwap /Size=100 /Position=End
  18.      Select Unallocated Last
  19.      Create /FS=LinuxExt2
  20. End If
  21.